package com.itbupt.eat.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itbupt.eat.entity.AddressBook;

import java.util.List;

/**
 * @Author BUPT-Dingchang
 * @Create 2024/5/1 16:59
 * ClassName: IAddressBookService
 * Description:
 */
public interface IAddressBookService extends IService<AddressBook> {

    // 新增地址
    AddressBook saveAdd(AddressBook addressBook);

    // 地址展示
    List<AddressBook> getList();

    // 设置默认地址
    AddressBook setDefault(AddressBook addressBook);

    // 获取当前用户的默认地址
    AddressBook getDefault();

}
